<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欠薪信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
<!--
	var checked = false;
	function checkAll(check){
		checked = !checked;
		if(check != null){
			if(check.length){
				for(var i = 0; i < check.length; i ++){
					check[i].checked = checked;
				}
			}else{
				check.checked = checked;
			}
		}
	}
-->
</script>
</head>


<body>
<form name="searchForm" method="post">
<table width="650" align="center" class="bordernone">
  <tr>
    <td class="bg_blue" width="100" align="right" >欠薪月份：</td>
    <td width="304">
    <select name="syear">
    <c:forEach var="x" begin="1990" end="${endYear}" step="1">
    <option value="${x}" <c:if test="${x  == param.syear }">selected</c:if>>${x}</option>
    </c:forEach>
    </select>年
    <select name="smonth">
    <option value="01" <c:if test="${'01' == param.smonth }">selected</c:if>>01</option>
    <option value="02" <c:if test="${'02' == param.smonth }">selected</c:if>>02</option>
    <option value="03" <c:if test="${'03' == param.smonth }">selected</c:if>>03</option>
    <option value="04" <c:if test="${'04' == param.smonth }">selected</c:if>>04</option>
    <option value="05" <c:if test="${'05' == param.smonth }">selected</c:if>>05</option>
    <option value="06" <c:if test="${'06' == param.smonth }">selected</c:if>>06</option>
    <option value="07" <c:if test="${'07' == param.smonth }">selected</c:if>>07</option>
    <option value="08" <c:if test="${'08' == param.smonth }">selected</c:if>>08</option>
    <option value="09" <c:if test="${'09' == param.smonth }">selected</c:if>>09</option>
    <option value="10" <c:if test="${'10' == param.smonth }">selected</c:if>>10</option>
    <option value="11" <c:if test="${'11' == param.smonth }">selected</c:if>>11</option>
    <option value="12" <c:if test="${'12' == param.smonth }">selected</c:if>>12</option>
    </select>月
    至
    <select name="eyear">
    <c:forEach var="x" begin="1990" end="${endYear}" step="1">
    <option value="${x}" <c:if test="${x  == param.eyear }">selected</c:if>>${x}</option>
    </c:forEach>
    </select>年
    <select name="emonth">
    <option value="01" <c:if test="${'01' == param.emonth }">selected</c:if>>01</option>
    <option value="02" <c:if test="${'02' == param.emonth }">selected</c:if>>02</option>
    <option value="03" <c:if test="${'03' == param.emonth }">selected</c:if>>03</option>
    <option value="04" <c:if test="${'04' == param.emonth }">selected</c:if>>04</option>
    <option value="05" <c:if test="${'05' == param.emonth }">selected</c:if>>05</option>
    <option value="06" <c:if test="${'06' == param.emonth }">selected</c:if>>06</option>
    <option value="07" <c:if test="${'07' == param.emonth }">selected</c:if>>07</option>
    <option value="08" <c:if test="${'08' == param.emonth }">selected</c:if>>08</option>
    <option value="09" <c:if test="${'09' == param.emonth }">selected</c:if>>09</option>
    <option value="10" <c:if test="${'10' == param.emonth }">selected</c:if>>10</option>
    <option value="11" <c:if test="${'11' == param.emonth }">selected</c:if>>11</option>
    <option value="12" <c:if test="${'12' == param.emonth }">selected</c:if>>12</option>
    </select>月
    </td>
    <td class="bg_blue" width="117" align="right">单位名称：</td>
    <td width="140"><input type="text" name="empInfoName" value="${param.empInfoName}"></td>
  </tr>
  <tr>
    <td colspan="4" align="center" class="nohover"><input type="submit" class="buttonsearch" value="查询"/>&nbsp;&nbsp;<input class="buttonreset" type="reset" value="重置"></td>
  </tr>
</table>
</form>
<table width="100%" border="1">
<tr>
    <td class="nohover" colspan="10"><input class="buttonadd" type="button" value="增加" onClick="javascript:window.location.href='<%=request.getContextPath()%>/BackPay.do?method=toAdd'"></td>
 </tr>
  <tr>
    <th width="35">序号</th>
    <th width="50">详细</th>
    <th width="250">单位名称</th>
    <th width="70">欠薪月份</th>
    <th width="70">欠薪人数</th>
    <th width="70">欠薪金额</th>
    <th width="60">状态</th>
    <th width="80">是否立案</th>
    <th width="160">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${pageNum + lineInfo.count}</td>
    <td><a href="<%=request.getContextPath()%>/BackPay.do?method=detail&bid=${prod.backPayId}">详细</a></td>
    <td>${prod.employerInfo.empInfoName}</td>
    <td><fmt:formatDate pattern="yyyy-MM" value="${prod.backPayMonth}"/></td>
    <td>${prod.backPayPensonNum}</td>
    <td>${prod.backPayMoney}</td>
	 <td>
	 <c:choose>
	 <c:when test="${prod.backPayState == '0'}">未确认</c:when>
	 <c:when test="${prod.backPayState == '1'}">核实处理中</c:when>
	 <c:when test="${prod.backPayState == '2'}">已办结</c:when>
	 </c:choose>
	 </td>
	 <td>
	 <c:choose>
	 <c:when test="${prod.backPayIsCase == '0'}">未立案</c:when>
	 <c:when test="${prod.backPayIsCase == '1'}">已立案</c:when>
	 </c:choose>
	 </td>
	 <td>
	 <c:if test="${prod.backPayState == '0'}">
	 <input name="button2" type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/BackPay.do?method=toUpdate&bid=${prod.backPayId}&page=${intPage}'" value="修改" />
     <input class="buttondelete" type="button" onClick="javascript:if(confirm('确定删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/BackPay.do?method=delete&bid=${prod.backPayId}&page=${intPage}'}" value="删除" />
    </c:if>
    </td>
  </tr>
  </c:forEach>
  <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    
    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/BackPay.do?method=list">
    <input type="hidden" name="syear" value="${param.syear}"/>
    <input type="hidden" name="smonth" value="${param.smonth}"/>
    <input type="hidden" name="eyear" value="${param.eyear}"/>
    <input type="hidden" name="emonth" value="${param.emonth}"/>
    <input type="hidden" name="empInfoName" value="${param.empInfoName}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
